<?php
//数据库设置
$_ip="localhost";
$_user="";
$_pass="";

$appid = "";
$appsecret = "";

$base_url = "http://withelper.itjesse.cn";
function connect_mysql($_dbname){
	global $_ip;
	global $_user;
	global $_pass;
	
	//数据库连接参数，不要动！
	$_conn=mysqli_connect($_ip, $_user, $_pass, $_dbname);

	if (!$_conn) {   
		printf("Can't connect to MySQL Server. Errorcode: %s ", mysqli_connect_error());   
		exit;   
	}

	mysqli_query($_conn, "set names utf8");
	return $_conn;
}
?>
